package com.zq.rabbitmq.servcie;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = {"queue04"})
public class ReciveService1Impl {

    @RabbitHandler
    public void a(  String string){
        System.out.println(string);
    }
}
